//
//  UIApplication+LBAddition.h
//  LBUIKit
//
//  Created by WuShiHai on 19/5/24.
//  Copyright (c) 2019 Lebbay. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIApplication (LBAddition)

/**
 当前正在显示的 viewController， 忽略模态弹出

 @return viewController
 */
+ (UIViewController *)displayViewController;

/// 当前正在显示的 viewController
/// @param controller 入口
/// @param ignorePresent 是否忽略present
+ (UIViewController *)displayViewController:(UIViewController *)controller
                              ignorePresent:(BOOL)ignorePresent;
/**
 keyWindow

 @return window
 */
+ (UIWindow *)keyWindow;

/**
 当前正在显示的 viewController 的名字

 @return viewController 的名字
 */
+ (NSString *)displayPageName;

@end
